﻿@model TidyBlog.Entity.Link

@{
	ViewBag.Title = "编辑链接";
	Layout = "~/Views/Shared/_ManageLayout.cshtml";
}

<form action="@Url.Content("Edit")" method="post">
	<table class="cols-4">
		<thead>
			<tr><th colspan="4">@ViewBag.Title</th></tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="4" class="buttons">
					<input type="submit" value=" 提 交 " />
					<input type="reset" value=" 恢 复 " />
				</td>
			</tr>
		</tfoot>
		<tbody>
			<tr>
				<th><label for="LinkName">链接名称：</label></th>
				<td>
					<input id="LinkName" name="LinkName" type="text" maxlength="30" value="@Model.LinkName" />
					<span class="required">*</span>
					<input name="LinkId" type="hidden" value="@Model.LinkId" />
				</td>
				<th><label for="Weight">权重：</label></th>
				<td>
					<input id="Weight" name="Weight" type="text" maxlength="3" size="3" value="@Model.Weight" />
					<span class="required">*</span>
					<span class="tips">(0-255)</span>
				</td>
			</tr>
			<tr>
				<th><label for="LinkUrl">链接地址：</label></th>
				<td>
					<input id="LinkUrl" name="LinkUrl" type="text" maxlength="50" size="40" value="@Model.LinkUrl" />
					<span class="required">*</span>
				</td>
				<th><label for="Description">链接说明：</label></th>
				<td>
					<input id="Description" name="Description" type="text" maxlength="30" size="30" value="@Model.Description" />
				</td>
			</tr>
		</tbody>
	</table>
</form>

@section Script{
<script>require('/manage-page/link/data/1.x/');</script>
}